Allow tests to be run inside python

Adds test function for use in python:

```python
import fastcache
fastcache.test()
```