refactored Jvector test
added inversion code, totally useless right now