added a basic test; now in semi-working state