Bug fixes and mock panstarrs object