AbstractState class tests

Signed-off-by: Ian bell <ian.h.bell@gmail.com>