It is extremely unlikely that the Universe is a simulation for a wide variety of reasons, foremost amongst them being expense. The level of simulation present in the Universe is sufficiently high that the only purpose of it would BE simulation, meaning that our physical laws would necessarily be quite close to the laws of whatever universe overlies us. However, this implies that building an Earth simulator with the level of fine-grained reality present here would be insanely expensive.
Ergo, it is highly unlikely that we are in a simulation because the amount of matter-energy necessary to generate said simulation is far in excess of any possible benefit for doing so.
How could you possibly know what kinds of things are expensive in a universe that can simulate ours?
If it is... I hope they do not crash the system with the test.
http://www.huffingtonpost.co.uk/2012/12/12/physicists-universe-simulation-test-university-of-washington-matrix_n_2282745.html
Be sure to check out the actual reseach papers linked in the article! I would have linked to them directly, but the article is full of follow-on links of considerable interest.